package day240515.work;

import day240515.work.MySortUitl;
import day240515.work.Teacher;

import java.util.Arrays;

public class Test5 {
    public static void main(String[] args) {
        Teacher z = new Teacher("Z老师", 'Z', 19);
        Teacher x = new Teacher("X老师", 'X', 22);
        Teacher b = new Teacher("B老师", 'B', 18);
        Teacher y = new Teacher("Y老师", 'Y', 20);
        Teacher a = new Teacher("A老师", 'A', 21);

        Teacher[] teachers = new Teacher[] {z, x, b, y, a};
        MySortUitl.print(teachers);
//        MySortUitl.sort(teachers , new TeacherFirstLetterComparator() );
//       MySortUitl.sort(teachers);
        Arrays.sort(teachers);
        MySortUitl.print(teachers);
        //System.out.println("=== === ===");

        Integer[] is = new Integer[] {3, 5, 1, 2, 9};
        Arrays.sort(is);
        MySortUitl.print(is);
    }
}
